<template>

    <iframe  :id="id" :src="url" frameborder="0" width="100%" height="590px" scrolling="yes"></iframe>

</template>

<script>
  import PageLayout from '../page/PageLayout'
  import RouteView from './RouteView'

  export default {
    name: "IframePageContent",
    data () {
      return {
         url:"http://10.7.62.100:8088/MicroStrategy/servlet/mstrWeb?evt=3140&src=mstrWeb.3140&documentID=7991FE36430ECACB4CE55DA27DD9D348&Server=10.7.62.100&Project=faw_100&Port=0&share=1&uid=administrator&pwd=faw1_Adm789&hiddensections=header,footer,path,dockTop,dockLeft",
         //url:"http://10.4.1.104:3150/MicroStrategy/servlet/mstrWeb?evt=3140&src=mstrWeb.3140&documentID=DB5C7F4040B1E9565AB709A61D07CE4F&Server=10.4.1.104&Project=faw_18&Port=0&share=1&uid=voc&pwd=123456&hiddensections=header,footer,path,dockTop,dockLeft",
         //url: "http://10.4.1.104:3150/MicroStrategy/servlet/mstrWeb?evt=3140&src=mstrWeb.3140&documentID=31D509F54AF2241B53BB10A275AC7215&Server=10.4.1.104&Project=faw_18&Port=0&share=1&uid=voc&pwd=123456&hiddensections=header,footer,path,dockTop,dockLeft",
         id:"7a2059063db01d0a1b74ff951361adf1"
      }
    },
    created () {
      this.goUrl()
    },
    updated () {
      this.goUrl()
    },
    watch: {
      $route(to, from) {
        this.goUrl();
      }
    },
    methods: {
      goUrl () {
        let url = this.$route.meta.url
        let id = this.$route.path
        this.id = id
        //url = "http://www.baidu.com"
        console.log("------url------"+url)
        if (url !== null && url !== undefined) {
          this.url = url;
          //window.open(this.url);
        }
      }
    }
  }
</script>

<style>
</style>